/**
 * Created by no1 on 2015/6/30.
 */
'use strict';

/**
 * Module waresLib.
 */

var mongoose = require('../conn/mongoose.js');
var Schema = mongoose.Schema;

var __modelName = 'counter';
var __collectionName = 'counters';
var theModel = new mongoose.Schema({
  id: {type: String},//表名字ID
  seq: {type: Number, 'default': 0}//数量
});
theModel.index({id: 1});

module.exports = mongoose.model(__modelName, theModel, __collectionName);